<template>
  <div class="detail-swiper">
    <Swiper class="swiper-container">
      <SwiperItem v-for="(item, index) in imgs" :key="index">
        <img :src="item" alt="title" />
      </SwiperItem>
    </Swiper>
  </div>
</template>

<script>
import { Swiper, SwiperItem } from "@/components/common/swiper";
export default {
  name: "detail-swiper",
  components: {
    Swiper,
    SwiperItem
  },
  props: {
    imgs: {
      type: Array,
      default() {
        return [];
      }
    }
  }
};
</script>

<style scoped>
.swiper-container {
  height: 300px;
  overflow: hidden;
}
</style>